﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kaiser.Modules.Core.Aggregates.Enum;

namespace Kaiser.Modules.Core.Aggregates
{
    public class SaleOrderBills : Bills<SaleOrderBills>
    {
        /// <summary>
        /// 销售订单
        /// </summary>
        public SaleOrderBills()
        {
            SaleOrderBillItems=new List<SaleOrderBillItems>();
            SettleAcct=new SettleAcct();
        }

        public string BillCode { get; set; }
        public string BillType { get; set; }
        public Company Company { get; set; }

        /// <summary>
        /// 订单总额
        /// </summary>
        public double BillAmount { get; set; }

        /// <summary>
        /// 定金
        /// </summary>
        public double GetAmount { get; set; }

        public SettleAcct SettleAcct { get; set; }
        public string BillDate { get; set; }
        public BillStateEnum BillState { get; set; }

        public IList<SaleOrderBillItems> SaleOrderBillItems { get; set; }

        //public bool HasGetAmount
        //{
        //    get
        //    {
        //        return Math.Abs(GetAmount) > 0;
        //    }
        //}
    }
}
